/*
 * Author: Liviu Patrasco
 * TCSS 342 Winter qrt
 * May 22, 2011
 * Scheduler-svn
 */
package main;

import java.util.List;

/**
 * Teacher class.
 * <br><br>
 * Invariant: getName() != null
 * @author Liviu Patrasco
 * @version May 22, 2011
 */
public class Teacher extends DataUser {
	private String my_name;
	private List<TimeBlock> my_timePrefs;
	private int my_prefCredits;
	
	public Teacher(final String the_userName, final String the_pswrd, final String the_name, final int the_prefCredits) {
		super(the_userName, the_pswrd);
		my_name = the_name;
		my_prefCredits = the_prefCredits;
	}
	
	/**
	 * Pre: my_name != null
	 */
	public void setName(String my_name) {
		this.my_name = my_name;
	}
	/**
	 * Returns Name.
	 */
	public String getName() {
		return my_name;
	}

	/**
	 * Sets prefs.
	 */
	public void setTimePrefs(List<TimeBlock> my_timePrefs) {
		this.my_timePrefs = my_timePrefs;
	}

	/**
	 * Returns time prefs.
	 */
	public List<TimeBlock> getTimePrefs() {
		return my_timePrefs;
	}

	/**
	 * Sets number of preferred credits.
	 */
	public void setPrefCredits(int my_prefCredits) {
		this.my_prefCredits = my_prefCredits;
	}

	/**
	 * Returns referred # of credits.
	 */
	public int getPrefCredits() {
		return my_prefCredits;
	}
}
